//
// C++ Interface: sqlitedb
//
// Description: 
//
//
// Author: Joker,,,, <joker@ubunter>, (C) 2012
//
// Copyright: See COPYING file that comes with this distribution
//
//
#ifndef SQLITEDB_H
#define SQLITEDB_H

#include <QtSql>
#include <QStringList>

class SqliteDB 
{
public:
      SqliteDB();
      ~SqliteDB();
    enum STATE {
        ABBR	= 1,
        WORD	= 2,
        TRANSL	= 4,
        EXCEP	= 8,
        FREQ    = 16,
        ALL	= 31
    };
      QStringList getResult(QString,QString,QString="");
      QStringList getResultTransl(QString,QString="");
      QString getResultString(QString,QString,QString="");
      void setString(QStringList words, int state);
//protected:

//private slots:


private:
      QSqlDatabase sdb;
};

#endif
